package com.asf.sofom.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.asf.sofom.domain.OPersona;
import com.asf.sofom.repository.PersonaDao;

@Component
public class SimplePersonaManager implements PersonaManager {
	
	   private static final long serialVersionUID = 1L;

	   @Autowired
	   private PersonaDao personaDao;
	   
	   
	   public void setPersonaDao(PersonaDao personaDao){
		   this.personaDao = personaDao;
	   }
	   
	   public void guardarPersona(OPersona persona) {
			// TODO Auto-generated method stub
		   personaDao.guardaPersona(persona);
			
	   }

	   public List<OPersona> getPersonaList() {
			// TODO Auto-generated method stub
		   return personaDao.getPersonas();
	   }

	   public List<OPersona> buscaPersona(OPersona persona) {
		   // TODO Auto-generated method stub
		   return personaDao.buscaPersona(persona);
	   }

}
